export const noData = (v) => {
  if (v || v === 0) {
    return v;
  } else {
    return "--";
  }
};

export const hoursMinutes = (v) => {
  var hour = parseInt(v / 60)
  var min = parseInt(v % 60);
  var hour_min = ''
  if(!v && v!==0){
    return '--'
  }else{
    if (min === 0 && hour === 0) {
      return '0min'
    } else {
      if (hour > 0) {
        hour_min += hour + '小时'
      }
      if (min > 0) {
        hour_min += parseFloat(min) + "分钟";
      }
      return hour_min
    }
  }
}